package com.wuercloud.config;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.annotation.*;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;

/**
 * Created by JiangWL on 2017/2/23.
 */
@Configuration
@ComponentScan(basePackages="com.wuercloud.*")
@PropertySource("classpath:conf/baseConfig.properties")
public class ApplicationConfig {
     final Log logger = LogFactory.getLog(getClass());
    @Bean
    public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
        return new PropertySourcesPlaceholderConfigurer(){
            @Override
            public void setIgnoreUnresolvablePlaceholders(boolean ignoreUnresolvablePlaceholders) {
                super.setIgnoreUnresolvablePlaceholders(true);
            }
        };
    }
}
